/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Behavioral.Observer;

/**
 *
 * @author usuario
 */
public class Tienda {
    public void devuelveArticulo(Articulo articulo){
        if(articulo.getEstado().equals("Malo")){
            AlarmaArticulo a = new AlarmaArticulo();
            a.notificar();
        }
    }
}
